package com.yunc.common.properties;

import lombok.Data;
import org.apache.commons.net.ftp.FTP;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * ftp配置参数
 *
 * @author congcong tao
 * @date 2019/4/8 9:13
 */
@Configuration
@PropertySource("classpath:pro.properties")
@ConfigurationProperties(prefix = "ftp")
@Data
public class FTPPro {

    private String userName;

    private String passWord;

    private String host;

    private Integer port;

    private String baseUrl;

    private Integer passiveMode = FTP.BINARY_FILE_TYPE;

    private String encoding="UTF-8";

    private int clientTimeout=120000;

    private int bufferSize;

    private int transferFileType=FTP.BINARY_FILE_TYPE;

    private boolean renameUploaded;

    private int retryTime;
}
